Skip to main content
Version: 5.x.x

ExtractUnionSocket


import { ExtractUnionSocket } from "@hyper-fetch/sockets"

Description

Defined in adapter/adapter.types.ts:57

Preview

type ExtractUnionSocket<Adapter,Values> = Extract<Adapter, SocketAdapterType<Values[adapterOptions], Values[adapterExtra], Values[listenerOptions], Values[emitterOptions]>> extends SocketAdapterInstance ? Extract<Adapter, SocketAdapterType<Values[adapterOptions], Values[adapterExtra], Values[listenerOptions], Values[emitterOptions]>> : never;

Structure

Extract<Adapter, SocketAdapterType<Values[adapterOptions], Values[adapterExtra], Values[listenerOptions], Values[emitterOptions]>> extends SocketAdapterInstance ? Extract<Adapter, SocketAdapterType<Values[adapterOptions], Values[adapterExtra], Values[listenerOptions], Values[emitterOptions]>> : never